var express = require('express');
var router = express.Router();
var user=require("../controll/product");

/* GET users listing. */
router.post('/list', function(req, res, next) {
  user.list(req,res,next);
});
router.post('/data', function(req, res, next) {
  user.post(req,res,next);
});
router.put('/data/:id', function(req, res, next) {
  user.put(req,res,next);
});
router.delete('/data/:id', function(req, res, next) {
  user.delete(req,res,next);
});
router.post('/manydata/delete',function(req, res, next) {
  user.deletemany(req,res,next);
});
module.exports = router;
